package com.gyz.cfmall.ware.dao;

import com.gyz.cfmall.ware.entity.WareSkuEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * 商品库存
 * 
 * @author gong_yuzhuo
 * @email gongyuzhcho@163.com
 * @date 2021-10-17 15:41:08
 */
@Mapper
public interface WareSkuDao extends BaseMapper<WareSkuEntity> {

    Long getSkuStock(Long item);

    void addStock(Long skuId, Long wareId, Integer skuNum);
}
